package com.ksd.modules.search.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ksd.common.po.BatchIdsPO;
import com.ksd.commons.IBaseService;
import com.ksd.modules.search.entity.SearchKeywords;
import com.ksd.modules.search.po.SearchKeywordsSavePO;
import com.ksd.modules.search.po.SearchKeywordsSearchPO;
import com.ksd.modules.search.vo.SearchKeywordsVo;

public interface ISearchKeywordsService extends IBaseService<SearchKeywords> {

    /**
     * 查询列表
     * @param searchKeywordsSearchPO
     * @return
     */
    Page<SearchKeywordsVo> findSearchKeywordss(SearchKeywordsSearchPO searchKeywordsSearchPO);

    /**
     * 回收站
     * @param searchKeywordsSearchPO
     * @return
     */
    Page<SearchKeywordsVo> findSearchKeywordssRecyle(SearchKeywordsSearchPO searchKeywordsSearchPO);

    /**
     * 保存和更新
     * @param searchKeywordsSavePO
     * @return
     */
    SearchKeywordsVo saveUpdateSearchKeywords(SearchKeywordsSavePO searchKeywordsSavePO);

    /**
     * 根据id获取明细
     * @param id
     * @return
     */
    SearchKeywordsVo getSearchKeywordsById(Long id);

    /**
     * 单个逻辑删除
     * @param id
     * @return
     */
    Boolean deleteSearchKeywordsById(Long id);

    /**
     * 单个恢复
     * @param id
     * @return
     */
    Boolean recoverByIdSearchKeywords(Long id);

    /**
     * 单个物理删除
     * @return
     */
    Boolean removeSearchKeywordsById(Long id);

    /**
     * 批量逻辑删除
     * @param batchIdsPO
     * @return
     */
    Boolean bacthDeletesSearchKeywords(BatchIdsPO batchIdsPO);

    /**
     * 批量恢复
     * @param batchIdsPO
     * @return
     */
    Boolean batchRecoversSearchKeywords(BatchIdsPO batchIdsPO);

    /**
     * 批量物理删除
     * @param batchIdsPO
     * @return
     */
    Boolean batchRemovesSearchKeywords(BatchIdsPO batchIdsPO);


    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatus(Long id,String column,Integer value);

    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatusStr(Long id,String column,String value);

    /**
     * 批量上架
     *
     * @param batchIdsPO
     * @return
     */
    Boolean batchDowns(BatchIdsPO batchIdsPO);

    /**
     * 批量上架
     *
     * @param batchIdsPO
     * @return
     */
    Boolean batchUps(BatchIdsPO batchIdsPO);
}
